let controllerFuns = {
    success: function (data) {
        return {
            states: 1,
            data: data
        }
    },
    error: function (msg, data) {
        return {
            states: 0,
            msg: msg,
            data: data
        }
    },
}
module.exports = {
    exports: function (controller, ctx) {
        for (let i in controllerFuns) controller[i] = controllerFuns[i];
    },
    success: controllerFuns.success,
    error: controllerFuns.error
}





